package dao;

import entity.Admin;

public class AdminDao {
    //假设从数据库查询到了密码
    String abusername="admin";
    String abpassword="1234";
    public boolean selectUser(String username,String password) {
//        Admin admin = new Admin();
        // 判断用户名和密码是否正确
        //java中比较用equals方法
        if(username.equals(abusername) && password.equals(abpassword)){
            //用户密码匹配成功返回true
            return true;
        }
        return false;
    }
}
